package com.xiake.core.constants;

public class FileConstants {
	public static final int FILE_TYPE_USER = 1; // 用户相关图片
	public static final int FILE_TYPE_DYNAMIC = 2; // 动态相关图片
	public static String BASE_FILE_PATH = ""; // 文件根路径

	/**
	 * TODO 根据type获取子路径
	 * @param type
	 * @return
	 */
	public static String getPath(Integer type) {
		String path = "other";
		switch (type) {
		case FILE_TYPE_USER:
			path = "user";
			break;
		case FILE_TYPE_DYNAMIC:
			path = "dynamic";
			break;
		default:
			break;
		}
		return path;
	}
}
